public abstract class Employee extends Person{
    private String ID ;   // 工号
    private double wages ;   // 工资
    private int age ;   // 工龄
 
    public Employee(String name, String address, String ID, double wages, int age) {
        super(name, address);   // 调用父类中的元素
        this.ID = ID;
        this.wages = wages;
        this.age = age;
    }
    public abstract void add(String position);   // 涨薪方法
 
    public double getWages() {
        return wages;
    }
 
    public void setWages(double wages) {
        this.wages = wages;
    }
 
    public String getID() {
        return ID;
    }
 
    public void setID(String ID) {
        this.ID = ID;
    }
 
    public int getAge() {
        return age;
    }
 
    public void setAge(int age) {
        this.age = age;
    }
}